package city.spring.modules.oldman.service;

import city.spring.modules.oldman.entity.OldmanUtilitybillEntity;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * Service：老人水电费
 *
 * @author 谢金婷
 * @date 2020-09-05 23:14:23
 */
public interface OldmanUtilitybillService extends IService<OldmanUtilitybillEntity> {
    String CACHE_NAME = "oldman_utilitybill";

    /**
     * 业务处理：保存一个 <strong>老人水电费</strong>
     *
     * @param entity 老人水电费
     */
    void saveOldmanUtilitybill(OldmanUtilitybillEntity entity);

    /**
     * 业务处理：修改一个 <strong>老人水电费</strong>
     *
     * @param entity 老人水电费
     */
    void updateOldmanUtilitybill(OldmanUtilitybillEntity entity);

    /**
     * 业务处理：删除一个 <strong>老人水电费</strong>
     *
     * @param primaryKey 主键ID
     */
    void deleteOldmanUtilitybill(String primaryKey);

    /**
     * 业务处理：删除多个 <strong>老人水电费</strong>
     *
     * @param primaryKeys 主键ID列表
     */
    void deleteOldmanUtilitybill(List<String> primaryKeys);

    /**
     * 根据oldmanId查找老人水电费
     *
     * @param oldmanId
     * @return
     */
    List<OldmanUtilitybillEntity> getUtilitybillByOldmanId(String oldmanId);
}